package com.zzyl.mapper;


import com.zzyl.entity.Reservation;
import com.zzyl.vo.CountVo;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ReservationMapper {

    Integer getCancelledCount(Long userId, LocalDateTime start, LocalDateTime end);

    void insertReservation(Reservation reservation);

    List<CountVo> countByTime(LocalDateTime start, LocalDateTime end);

    List<Reservation> selectByPage(Integer status);

    void cancelReservation(Integer id);

    void overDue(LocalDateTime time);
}
